package com.webbei.Backstage.action;

import java.util.List;

import com.webbei.Backstage.service.BackstateSer;
import com.webbei.pojo.Label;
import com.webbei.pojo.LabelProduct;
import com.webbei.pojo.Products;

public class ShowProductById {
	private int productId;
	private Products product;
	private BackstateSer bao;
	private List<LabelProduct> labels;
	
	public String execute(){
		System.out.println("showProdutById...."+productId);
		product = bao.getProductById(productId);
		labels = bao.getLabelByProductId(productId);
		return "success";
	}
	
	public int getProductId() {
		return productId;
	}
	public void setProductId(int productId) {
		this.productId = productId;
	}
	public Products getProduct() {
		return product;
	}
	public void setProduct(Products product) {
		this.product = product;
	}
	
	public List<LabelProduct> getLabels() {
		return labels;
	}

	public void setLabels(List<LabelProduct> labels) {
		this.labels = labels;
	}

	public void setBao(BackstateSer bao) {
		this.bao = bao;
	}

}
